Maggeo, wfff_xml fixes.
authorrobertlipe@gmail.com <robertlipe@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 1 Jan 2014 07:06:36 +0000 (07:06 +0000)
committerrobertlipe@gmail.com <robertlipe@gmail.com@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 1 Jan 2014 07:06:36 +0000 (07:06 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4698 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/maggeo.cc
gpsbabel/wfff_xml.cc

index 2db30f65895e6627e57eac8b8cfcbcb305f89b8e..db3ee579cf6f453b0bc92d55412536e062e0457d 100644 (file)
@@ -138,10 +138,10 @@ maggeo_read(void)
         }
         break;
       case 8:
-        wpt_tmp->shortname = xstrdup(s);
+        wpt_tmp->shortname = s;
         break;
       case 9:
-        wpt_tmp->description = xstrdup(s);
+        wpt_tmp->description = s;
         break;
       case 10:
         gcdata->placer = s;
index d38264ac2608f3c957a37b3c61a6f3b997a9e475..c58b67a22fc36d73c3bbf9e3e05528a5e2726ba7 100644 (file)
@@ -226,16 +226,16 @@ void wfff_e(xg_string args, const QXmlStreamAttributes* unused)
     wpt_tmp = waypt_new();
 
     if (snmac) {
-      wpt_tmp->shortname = xstrdup(ap_mac);
+      wpt_tmp->shortname = ap_mac;
     } else {
-      wpt_tmp->shortname = xstrdup(ap_ssid);
+      wpt_tmp->shortname = ap_ssid;
     }
 
     snprintf(desc, sizeof desc,
              "%s/%s/WEP %s/Ch %d/%2.0fdB/%2.0fdB/%s",
              (snmac?ap_ssid:ap_mac), ap_type, ap_wep,
              ap_chan, ap_mnrssi, ap_mxrssi, ap_last);
-    wpt_tmp->description = xstrdup(desc);
+    wpt_tmp->description = desc;
 
     wpt_tmp->latitude = ap_lat;
     wpt_tmp->longitude = ap_lon;